import { setupDirective } from "@/directive";
import router from "@/router";
import { setupStore } from "@/store";
import Vue3VideoPlayer from "@cloudgeek/vue3-video-player";
import "@cloudgeek/vue3-video-player/dist/vue3-video-player.css";
import { createApp } from "vue";

import App from "./App.vue";

import "@/permission";

// 本地SVG图标
import "virtual:svg-icons-register";

// 国际化
import i18n from "@/lang/index";

// 样式
import "@/styles/index.scss";
import "element-plus/theme-chalk/dark/css-vars.css";
import "uno.css";

const app = createApp(App);
// 全局注册 自定义指令(directive)
setupDirective(app);
// 全局注册 状态管理(store)
setupStore(app);

app
  .use(router)
  .use(i18n)
  .use(Vue3VideoPlayer, {
    lang: "zh-CN",
  })
  .mount("#app");
